//
//  CustemIMView.h
//  ipjsua
//
//  Created by YJ on 16/6/3.
//  Copyright © 2016年 Teluu. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kScreenWidth [[UIScreen mainScreen] bounds].size.width
#define kScreenHeight [[UIScreen mainScreen] bounds].size.height

typedef NS_ENUM(NSInteger, IMType)
{
    IMTypeVideo,        // 视频
    IMTypeAudio         // 语音
};


@protocol CustemIMViewDelegate <NSObject>

- (void)refuseIMRequest;
- (void)agreeIMRequest;

@end

@interface CustemIMView : NSObject

@property (nonatomic, assign) IMType * imType;          // 视频 / 语音

@property (nonatomic, strong) UIView * imView;
@property (nonatomic, strong) UIView * distanceView;    //远程
@property (nonatomic, strong) UIView * localView;       //本地
@property (nonatomic, strong) UIButton * refuseBtn;     //拒绝
@property (nonatomic, strong) UIButton * agreeBtn;      //接受

@property (nonatomic, strong) UIButton * switchButton;

@property (nonatomic, weak) id<CustemIMViewDelegate>delegate;


- (instancetype)init;

- (void)showIMCallViewWithIMType:(IMType)imType;
- (void)hideIMCallView;
- (void)updateWithDistanceView:(UIView *)view;      // 显示远程视频
- (void)updateWithLocalView:(UIView *)view displayBigNative:(BOOL)displayBigNative;         // 显示本地视频

@end
